package com.wym.springboot01.ESbean;

import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

/**
 * 
 * @author yongmao.wu
 *
 */
// @Document(indexName = "testgoods",type = "goods")
 @Document(indexName = "testgoods3",type = "goods3")
//@Document(indexName = "zsz", type = "news", shards = 10, replicas = 0, refreshInterval = "-1")
// indexName索引名称 可以理解为数据库名 必须为小写
// 不然会报org.elasticsearch.indices.InvalidIndexNameException异常
// type类型 可以理解为表名
public class GoodsInfo implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Long id;
	private String name;
	private String description;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public GoodsInfo(Long id, String name, String description) {
		this.id = id;
		this.name = name;
		this.description = description;
	}

	public GoodsInfo() {
	}
}
